package com.bph.user.service;

import com.bph.commons.pojo.User;
import com.bph.commons.vo.ResultVo;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    public ResultVo selectUserByPassword(User user);

    public ResultVo selectUserByCode(User user, String code, HttpServletRequest request);

    public ResultVo updatePasswordByCode(User user, String code, HttpServletRequest request);

    public ResultVo insertUserByMail(User user, String code, HttpServletRequest request);

    public ResultVo getPermissionByMail(HttpServletRequest request);

    public ResultVo updatePasswordByPassword(User user, String new_password);

    public ResultVo getUserByMail(HttpServletRequest request);

    public ResultVo updateUserByMail(User user);

    public ResultVo getUserById(User user);

    public ResultVo selectUserByKey(String key, String user_title, int store_id, int limit_index, int limit_length);

    public ResultVo deleteUserById(int user_id);

    public ResultVo updateUserById(User user);

    ResultVo insertEmployeeByMail(User user);
}
